package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbProductPropertyService;
import com.gidgabs.modules.dao.TbProductPropertyDao;
import com.gidgabs.modules.entity.TbProductPropertyEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbProductPropertyServiceImpl implements TbProductPropertyService {
	@Autowired
	private TbProductPropertyDao productPropertyDao;
	
	@Override
	public TbProductPropertyEntity queryObject(Integer id){
		return productPropertyDao.queryObject(id);
	}
	
	@Override
	public List<TbProductPropertyEntity> queryList(Map<String, Object> map){
		return productPropertyDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return productPropertyDao.queryTotal(map);
	}
	
	@Override
	public void save(TbProductPropertyEntity productProperty){
		productPropertyDao.save(productProperty);
	}
	
	@Override
	public void update(TbProductPropertyEntity productProperty){
		productPropertyDao.update(productProperty);
	}
	
	@Override
	public void delete(Integer id){
		productPropertyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		productPropertyDao.deleteBatch(ids);
	}
	
}
